# Задание А

count = int(input())
nums = input()
List = list(nums.split(" "))
result = list()

for i in range(0,count, 2):
    result.append(List[i])

print(" ".join(result))

# Задание B

count = int(input())
userinput = input()
List = list(userinput.split(" "))
print(max(List), min(List))

# Задание C

smth = int(input())
List = list(map(int, input().split(" ")))
count = 0

for i in range(len(List)):
    try:
        if List[i+1] > len(List):
            break
        if List[i+1] > List[i]:
            count += 1
    except IndexError:
        break
print(count)